package model.simulation;

import java.awt.image.BufferedImage;
import java.util.ArrayList;

public class Store {

	private ArrayList<String> incidences;
	private BufferedImage mapImage;
	private BufferedImage blackboardImage;
	private Boolean mapLoaded;
	
	public Store() {
		
		incidences = new ArrayList<String>();
		incidences.clear();
		mapLoaded = false;
	}

	public BufferedImage getMapImage() {
		return mapImage;
	}

	public void setMapImage(BufferedImage map) {
		mapImage = map;
	}

	public BufferedImage getBlackboardImage() {
		return blackboardImage;
	}

	public void setBlackboardImage(BufferedImage blackboardImage) {
		this.blackboardImage = blackboardImage;
	}

	public Boolean getMapLoaded() {
		return mapLoaded;
	}

	public void setMapLoaded(Boolean mapLoaded) {
		this.mapLoaded = mapLoaded;
	}

	public ArrayList<String> getIncidences() {
		return incidences;
	}

	public void setIncidences(ArrayList<String> incidences) {
		this.incidences = incidences;
	}

	public void createBlackboardImage(BufferedImage image) {
		
		blackboardImage = new BufferedImage(image.getWidth(),image.getHeight(),BufferedImage.TYPE_INT_RGB);
		for (int i=0;i<image.getWidth();i++)
			for (int j=0;j<image.getHeight();j++)
				blackboardImage.setRGB(i,j,image.getRGB(i,j));
	}
}
